package org.noahsark.nsmessenger.security;

import java.security.NoSuchAlgorithmException;

public class MDCalculatorFactory {

	public static MDCalculator getInstance(String type)
			throws NoSuchAlgorithmException {
		if ((type != null) && type.equals("MD5Calculator")) {
			return MD5Calculator.getInstance();
		} else {
			return null;
		}
	}

}
